<?php
error_reporting(4);
set_time_limit(0);
require_once("header.php");
?>
<table width="98%" border="0" cellspacing="1" cellpadding="1">
 <form action="pagerank-search.php" method="post" name="pagerank_search">
  <tr>
    <td width="16%" height="25" align="right" class="bodytext"><strong>Enter Keywords:</strong>:</td>
    <td colspan="2"><input name="keywords" type="text" id="keywords" value="<?php if(isset($_REQUEST['keywords'])) echo $_REQUEST['keywords']; else echo ''; ?>" size="60" maxlength="60" /></td>
  </tr>
  <tr>
    <td height="25">&nbsp;</td>
    <td width="13%"><select name="result_mode" align="absmiddle">
		      <option value="<?php if(isset($_REQUEST['result_mode'])) echo $_REQUEST['result_mode']; else echo 'relevance'; ?>">Order by (<?php if(isset($_REQUEST['result_mode'])) echo $_REQUEST['result_mode']; else echo 'relevance'; ?>)</option>
		      <option value="relevance">Relevance</option>
		      <option value="pagerank">PageRank</option>
    </select></td>
    <td width="71%"> <select name="num" align="absmiddle">
	      <option value="<?php if(isset($_REQUEST['num'])) echo $_REQUEST['num']; else echo '10'; ?>">Results (<?php if(isset($_REQUEST['num'])) echo $_REQUEST['num']; else echo '10'; ?>)</option>
		  <option value="10">10</option>
		  <option value="20">20</option>
		  <option value="30">30</option>
		  <option value="40">40</option>
		  <option value="50">50</option>
		  <option value="60">60</option>
		  <option value="70">70</option>
		  <option value="80">80</option>
          <option value="90">90</option>
	      <option value="100">100</option>
		  <option value="200">200</option>
		  <option value="300">300</option>
		  <option value="400">400</option>
		  <option value="500">500</option>
		  <option value="600">600</option>
		  <option value="700">700</option>
		  <option value="800">800</option>
		  <option value="900">900</option>
		  <option value="1000">1000</option>
    </select> &nbsp;&nbsp;&nbsp;<input type="submit" class="button" name="btnG" value="   Search   "></td>
  </tr>
 </form>
</table>
<p>&nbsp;</p>
<?php 
if (isset($_REQUEST['keywords']) && isset($_REQUEST['btnG']) ) {
	require_once("query_google.php"); 
}

require_once("footer.php");

?>